import request from '@/utils/request'

const {
  get: $get,
  post: $post,
  delete: $delete,
  download: $download,
  post_query: $post_query
} = request

// 查询模型列表
export const listModeler = data => {
  return $get('/activiti/activiti/modeler/list', data)
}

// 新增模型
export const addModeler = data  =>{
  return $post_query('/activiti/activiti/modeler/create',data)
}

// 删除模型
export const delModeler = modelId =>{
  return $post('/activiti/activiti/modeler/remove/'+modelId)
}

// 导出模型
export const exportModeler = modelId => {
  return $get('/activiti/activiti/modeler/export/'+modelId)
}

// 部署模型
export const deployModeler = modelId => {
  return $get('/activiti/activiti/modeler/deploy/' + modelId)
}
